﻿/*
* HeroBuilder.h
*
* 武将创建器
*
* create date: 2014.4.17
* create by: leo
*
*/

#ifndef _HEROBUILDER_H_
#define _HEROBUILDER_H_

#include "cocos2d.h"
#include "../Common.h"

#include "BaseHero.h"

class CHeroBuilder
{
public:
	static CHeroBuilder& getInstance();

public:
	CBaseHero* createHero(const char* name);

protected:
	typedef struct HeroParam
	{
		cocos2d::CCString name;
		CBaseHero::Param param;
	} HeroParam;

protected:
	CHeroBuilder();
	virtual ~CHeroBuilder();

	bool init();

protected:
	cocos2d::CCArray mParams; // 武将技能

};

#endif // _HEROBUILDER_H_
